package com.rgp.apidriver.controller;

import com.rgp.apidriver.service.DriverUserLoginService;
import com.rgp.internalcommon.dto.ResponseResult;
import com.rgp.internalcommon.dto.VerificationCodeDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-17 17:52
 */
@RestController
public class DriverUserLoginController {

    @Autowired
    private DriverUserLoginService driverUserLoginService;

    @PostMapping("verification-code")
    public ResponseResult verificationCode(@RequestBody VerificationCodeDto verificationCodeDto){
        return driverUserLoginService.verificationCode(verificationCodeDto);
    }
}